﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TournamentDatabase.Database;

namespace TournamentDatabase.Objects
{
	public class Organiser : Member
	{
		private string m_authority;

		public string Authority
		{
			get { return m_authority; }
			set { m_authority = value; }
		}

		public Organiser() : this(0, "") { }
		public Organiser(int mid, string authority)
		{
			m_mid = mid;
			m_authority = authority;
		}
		public Organiser(OracleDataReader odr) : base(odr)
		{
			//MemberID = int.Parse(odr["mid"]);
			Authority = odr["authority"].ToString();
		}

        public static List<Organiser> ParseOrganiser(OracleDataReader odr)
        {
            List<Organiser> list = new List<Organiser>();
            while (odr.Read())
            {
                list.Add(new Organiser());
            }
            return list;
        } 
	}

}
